<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Order extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'user_id', 'company', 'team', 'description', 'law', 'system', 'grade', 'peccancy', 'proposal', 'inspector', 'unit', 'point',
        'rectify', 'begin_at', 'end_at', 'problem', 'rectification', 'extended_data', 'audit'
    ];

    protected $casts = [
        'extended_data' => 'array'
    ];

    protected $dates = ['deleted_at'];
}
